package cn.edu.gzgs.vo;

import cn.edu.gzgs.entity.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户视图对象（用于接口返回）
 *
 * @author Zyf
 */
@Data
@Schema(description = "用户详情VO")
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "工号")
    private String userNo;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "所属部门ID")
    private Long deptId;

    @Schema(description = "所属部门")
    private Dept dept;

    @Schema(description = "来校日期")
    private LocalDate entryDate;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "用户状态：1-正常，0-禁用")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;
    
    @Schema(description = "角色列表")
    private List<Role> roles;

    @Schema(description = "职称列表")
    private List<Title> titles;
    
    @Schema(description = "岗位列表")
    private List<Position> positions;

    @Schema(description = "职务列表")
    private List<Duty> duties;

    @Schema(description = "学历/学位列表")
    private List<Education> educations;
} 